﻿using System;
using System.Collections.Generic;
using System.Text;
using MapDownloader.Core.Core;
using MapDownloader.Core.MapProviders;
using MapDownloader.Core.Models;
using MapDownloader.Core.Storage;

namespace MapDownloader
{
    class Downloader
    {
      
      public void Do()
      {
         Maps.Instance.Provider = BaiduMapProvider.Instance;
         Maps.Instance.Provider.Storager=new MongoTileStorage();
         Maps.Instance.Provider.Storager.SetConnectionString("mongodb://127.0.0.1:27017/?safe=true",null);
         Maps.Instance.AutoStoreTile(8, "中国");
         //int zoom = 8;
         //GaoDeProvider.Instance.Storager.SetConnectionString("Server=120.79.8.161;Database=WisdomHome1;Uid=wisdonhome;Pwd=1q2w3e4r;Character Set=utf8;Port=3306;SslMode=none");
         

      }

   }
}
